package com.ruoyi.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * (UserAnswer)表实体类
 *
 * @author makejava
 * @since 2023-03-31 22:23:19
 */
@SuppressWarnings("serial")
@Data
@TableName("tb_user_answer")
public class UserAnswer extends Model<UserAnswer> {
    //主键id
    @TableId(type = IdType.AUTO)
    private Long id;
    //学生id
    private Long studentId;
    //用户的回答
    private String userAnswer;
    //题目id
    private Long questionId;
    //选项id
    private Long optionId;
    //答案id
    private Long questionAnswerId;
    //正确答案
    private String questionAnswer;
    //正确标识（0手动判断，1正确，2错误，3其他）
    private Integer correctFlag;
    //创建者
    private String createBy;
    //创建时间
    private Date createTime;
    //修改者
    private String updateBy;
    //修改时间
    private Date updateTime;
    //删除标志（0代表存在 2代表删除）
    @TableLogic
    private Integer delFlag;
    //问题类型
    private Integer questionType;
    //口语回答url
    private String spokenUrl;

    private Integer examType;

    private Long paperId;

    private Long userPaperId;



    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

